﻿﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Jxc0.aspx.cs" Inherits="Jxc.Jxc0" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <asp:Label ID="Label1" runat="server" Text="澳门赌场VIP用户注册入口" Font-Size="Larger" Font-Bold="true" ForeColor="#ffcc00"></asp:Label>
            <br/><br/>
            <br/><br/>
            
            姓名：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="账号不可为admin！！！"  OnServerValidate="CustomValidator1_ServerValidate" ControlToValidate="TextBox1" ForeColor="#ff0000" Display="Dynamic" ></asp:CustomValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="内容不可为空！！！" ControlToValidate="TextBox1" Display="Dynamic"   ForeColor="#ff0000"></asp:RequiredFieldValidator>
            <br/><br/>
            
            密码：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="内容不可为空！！！" ControlToValidate="TextBox2" Display="Dynamic" ForeColor="Red"></asp:RequiredFieldValidator>
            <br/><br/>
            
            再次确认密码：<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="内容不可为空！！！" ForeColor="Red" ControlToValidate="TextBox3" Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:CustomValidator ID="CustomValidator2" runat="server" ErrorMessage="密码不一致！！！"  OnServerValidate="CustomValidator2_ServerValidate" ControlToValidate="TextBox3" ForeColor="#ff0000" Display="Dynamic" ></asp:CustomValidator>
            <br/><br/>

            年龄：<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
            <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="年龄必须在0~100之间！" ControlToValidate="TextBox4" MaximumValue="100" MinimumValue="0" ForeColor="Red" Type="Integer"></asp:RangeValidator>
            <br /><br />

            出生日期：<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
             <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="日期格式必须为：2000-01-01"  ForeColor="Red" ControlToValidate="TextBox5" ValidationExpression="\d{4}-\d{2}-\d{2}"></asp:RegularExpressionValidator>
             <asp:RangeValidator ID="RangeValidator2" runat="server" ErrorMessage="出生日期必须在1900-01-01和今天之间！！！" ControlToValidate="TextBox5" MaximumValue="" MinimumValue="1900-01-01" ForeColor="Red" Type="Date"></asp:RangeValidator>
             <br /><br />

            会员开始日期：<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
           <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="日期格式必须为：2000-01-01"  ForeColor="Red" ControlToValidate="TextBox6" ValidationExpression="\d{4}-\d{2}-\d{2}"></asp:RegularExpressionValidator>
           <asp:CompareValidator ID="CompareValidator2" runat="server" ErrorMessage="会员开始时间不能早于出生时间！"  ForeColor="Red"  ControlToCompare="TextBox5" ControlToValidate="TextBox6" Operator="GreaterThan" Type="Date"></asp:CompareValidator>
           <br /><br />

            会员截止日期：<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="日期格式必须为：2000-01-01"  ForeColor="Red" ControlToValidate="TextBox7" ValidationExpression="\d{4}-\d{2}-\d{2}"></asp:RegularExpressionValidator>
            <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="会员截止时间不能早于会员开始时间！"  ForeColor="Red"  ControlToCompare="TextBox6" ControlToValidate="TextBox7" Operator="GreaterThan" Type="Date"></asp:CompareValidator>
            <br /><br />
            
            邮箱：<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="邮箱格式必须为：123456789@qq.com"  ForeColor="Red" ControlToValidate="TextBox8" ValidationExpression="\d{9}@qq.com"></asp:RegularExpressionValidator>
            <br/><br/>
             
            头像：
            
            
            <asp:Literal ID="Literal1" runat="server"></asp:Literal>
            <br/><br/>
            <br/><br/>
            <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" />
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="SingleParagraph" ShowMessageBox="true" />
            <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="True" />

        </div>
    </form>
</body>
</html>
